<template>
  <div class="allbox">
    <div class="title"></div>
    <div class="fffbox">
      <div class="resume">这是我的个人简历!!!</div>
      <div class="minpian">
        <div cclass="box-l">
          <span class="ccc">姓名</span>
          <span>{{ arr.nickName }}</span>
        </div>
        <div cclass="box-r">
          <span class="ccc">联系方式</span>
          <span>{{ arr.phone }}</span>
        </div>
      </div>
    </div>
    <div class="touxianng">
      <img src="../assets/img/touxiang.png" alt="" />
    </div>

    <div class="zhongbu">
      <div class="fff">
        <img src="../assets/img/Personal information.png" alt="" />
        <van-cell title="个人信息" is-link to="./userxinxi" />
      </div>
      <div class="fff">
        <img src="../assets/img/支付中心.png" alt="" />
        <van-cell title="支付中心" is-link />
      </div>
      <div class="fff">
        <img src="../assets/img/修改密码.png" alt="" />
        <van-cell title="修改密码" is-link />
      </div>

      <div class="fff">
        <img src="../assets/img/版本信息.png" alt="" />
        <van-cell title="版本信息" is-link to="./version" value="版本1.0" />
      </div>
      <div class="fff">
        <img src="../assets/img/清除缓存.png" alt="" />
        <van-cell title="清除缓存" is-link />
      </div>
    </div>
    <div>
      <van-button type="danger" native-type="submit" @click="btnfn">
        退出登录</van-button
      >
    </div>
    <div></div>
  </div>
</template>
<script>
import { UserinterfaceApi } from "../request/api";
import { Dialog } from "vant";
export default {
  data() {
    return {
      arr: {},
    };
  },
  created() {
    UserinterfaceApi().then((res) => {
      this.arr = res.data;
      console.log(this.arr);
    });
  },
  methods: {
    btnfn() {
      Dialog.confirm({
        // title: "标题",
        message: "是否确认退出",
      })
        .then(() => {
          this.$router.push("/personal");
        })
        .catch(() => {});
    },
  },
};
</script>
<style lang = "less" scoped>
.allbox {
  min-height: 100%;
  .title {
    width: 100%;
    height: 180px;
    background-color: #083388;
    position: relative;
    overflow: hidden;
  }
  .fffbox {
    width: 90%;
    height: 180px;
    border: 1px solid #fff;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 3%;
    background-color: #fff;
    text-align: center;
    position: absolute;
    left: 0;
    top: 100px;
    overflow: hidden;
    .resume {
      width: 80%;
      height: 60px;
      margin-top: 60px;
      line-height: 60px;
      margin-left: 48px;
      border-bottom: 1px dotted #ccc;
    }
    .ccc {
      color: #ccc;
    }
    .minpian {
      margin-left: 20px;
      margin-right: 20px;
      height: 60px;
      line-height: 60px;
      display: flex;
      justify-content: space-between;
      span {
        padding-left: 20px;
      }
    }
  }
  .touxianng {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 5px solid #fff;
    border-top: 5px solid #6885c2;
    border-radius: 50%;
    background-color: yellow;
    left: 40%;
    top: 50px;
    img {
      width: 100px;
      height: 100px;
    }
  }
  .zhongbu {
    margin-top: 100px;
    margin-left: 10px;
    margin-right: 10px;
    .fff {
      height: 60px;
      display: flex;
      img {
        margin: auto;
        width: 20px;
        height: 20px;
        padding-left: 40px;
      }
    }
    .van-cell {
      line-height: 40px;
    }
    .van-cell__right-icon {
      margin-top: 10px;
    }
  }
  .van-button {
    width: 80%;
    height: 40px;
    margin-top: 60px;
    border-radius: 5px;
    margin-left: 40px;

    font-size: 25px;
  }
}
</style>